<?php

//公共的常量
class CommonType{
	public static $PAGE_NUM_TAG = '%page';	//X页  替代标签
	public static $PIC_EXPLODE_CHAR = '[]';	//【图片模块】多个图片，分隔符 组合
}

//网站反馈信息状态 -> 供 CommonUtil::ajaxReturn() 使用，定义规范，固定标准。
class Status{
    public static $ERROR = 0;  //错误的状态
    public static $SUCCESS = 1; //成功的状态
    public static $REDIRECT = 2; //跳转的状态
    public static $JS_CALLBACK = 3; //供前端JS调用的状态
    public static $RELOAD_PAGE = 4; //刷新当前页
}

//升级程序常量
class UpgradeType{
	public static $ZIP_FILE = '4jcms_upgrade.zip';	//升级补丁文件名[zip文件]
	public static $SQL_FILE = 'update.sql';	//数据库升级补丁文件名
	public static $ERROR_FILE = 'upgrade_error.txt';	//升级过程出错后，日志记录文件
	public static $UPGRADE_SITE_URL = 'http://localhost/4jcms_help/';	//远程检查升级信息地址
	public static $UPGRADE_CHECK_INTERVAL_TIME = 2;	//远程检查间隔时间[单位：天]
}

class CatalogType{
	public static $SINGEL_ARTICLE = '单篇模块';
	public static $DYNAMIC_MODULE = '动态模块';
	public static $RESERVE_MODULE = '表单模块';
	public static $FM_PAGE = '封面模块';	
	public static $REDIRECT = 'URL跳转模块';
	public static $GUESTBOOK = '留言模块';
	//再增加一个无限扩展的订单模块。
}

class FormType{
	public static $INPUT = '单行文本';
	public static $TEXTAREA = '多行文本';
	public static $EDITOR = '编辑器';
	public static $NUMBER = '数字';
	public static $SELECT = '选项';
	public static $IMAGE = '图片上传';
	public static $MULTI_IMAGE = '多图片上传';
	public static $FILE = '文件上传';
	public static $MULTI_FILE = '多文件上传';
}

class SelectType{
	public static $RADIO = '单选类型';
	public static $CHECKBOX = '多选类型';
	public static $SELECT = '下拉框类型';
}

//文件存放路径
class UploadFilePath{
	public static $FILE = "/uploads/file/";	//上传文件存放路径
	public static $TEMP = "/uploads/temp/";	//文件临时存放路径
}


